const fs = require('fs')

const rs = fs.createReadStream('./test.mp4')

// 3. 绑定data事件 chunk
rs.on('data', (chunk) => {
  console.log(chunk)
})

// 4. 绑定end事件
rs.on('end', () => {
  console.log('读取完成')
})